package cn.psvmc.cxzapi.model.store;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商家表
 * @Author auto
 * @Date 2024-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_store")
public class TStore implements Serializable {

    //商家id
    @TableId(value = "storeid", type = IdType.AUTO)
    private Integer storeid;

    //店铺名称
    @TableField("storename")
    private String storename;

    //店铺logo
    @TableField("storelogo")
    private String storelogo;

    //店铺logo取值来源
    @TableField("resource_id")
    private String resourceid;

    //商家地址
    @TableField("storeaddress")
    private String storeaddress;

    //商家联系人
    @TableField("storelink")
    private String storelink;

    //商家电话
    @TableField("storephone")
    private String storephone;

    //是否认证（0草稿 1已提交 2已认证 3认证失败）
    @TableField("storetype")
    private Integer storetype;

    //审核状态（0待处理1审核通过2拒绝）
    @TableField("check_status")
    private Integer checkStatus;

    //审核意见
    @TableField("check_comm")
    private String checkComm;

    //审核人id
    @TableField(value = "check_id")
    private Integer checkId;

    //审核时间
    @TableField(value = "check_time")
    private LocalDateTime checkTime;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;

    //商家详情
    @TableField(exist = false)
    private TStoreDetail detail;


}
